import { request } from '@/api/api.js';

export function add(objectId, type) {
  return request({
    url: 'api/serFocus/add?objectId=' + objectId + '&objectType=' + type,
    method: 'get'
  })
}

export function list(type) {
  return request({
    url: 'api/serFocus/list?objectType=' + type,
    method: 'get'
  })
}

export function getOne(objectId) {
  return request({
    url: 'api/serFocus/getOne?objectId=' + objectId,
    method: 'get'
  })
}


export default {add, list, getOne}